const ENV = import.meta.env //引入环境变量
console.log('当前环境 '+ ENV.VITE_BASE_API);

let dev = ENV.DEV; //是否测试模式 1是 0否
let baseUrl = ENV.VITE_BASE_API;
let domain = ENV.VITE_BASE_URL;

let serverImg = domain+'uploads/';//服务器图片前缀
// let baseUrl = dev==1?"http://tp6/":"http://www.88an.top/";
let qnUrl = "http://qiniu.other.88an.top/";//七牛云图片前缀

let spaceList = [
	{label:'其他',value:'other'},
	{label:'商品',value:'goods'},
	{label:'家族',value:'family'},
	{label:'编辑器模板',value:'wxedit'},
	{label:'笔记封面',value:'note'},
	{label:'名片',value:'card'},
	{label:'资讯',value:'news'},
]
let typeForm = {
	name:'',
	other:'',
	pid:'',
	sort:'',
	icon:'',
	id:'',
	type_id:'',
	a_show:'1'
}

export default {
    dev,
	serverImg,
	domain,
	baseUrl,
    qnUrl,
	spaceList,
	typeForm,
}
